package com.lx.patterns.command;

public class Client {

    public static void main(String[] args) {

        Order order1 = new Order();
        order1.setDiningTable(1);
        order1.setFoodDic("宫保鸡丁",1);
        order1.setFoodDic("可口可乐",1);

        Order order2 = new Order();
        order2.setDiningTable(2);
        order2.setFoodDic("鱼香肉丝",1);
        order2.setFoodDic("雪碧",1);

        SeniorChef seniorChef = new SeniorChef();
        OrderCommand orderCommand1 = new OrderCommand(seniorChef, order1);
        OrderCommand orderCommand2 = new OrderCommand(seniorChef, order2);

        Waiter waiter = new Waiter();
        waiter.addCommand(orderCommand1);
        waiter.addCommand(orderCommand2);
        waiter.orderUp();


    }
}
